package shejimoshi.xiangyuanmoshi;

public class client {
    public static void main(String[] args) {
        FlyweightFactory factory = new FlyweightFactory();
        Flyweight flyweight1 = factory.getFlyweight("X");
        flyweight1.operation("Specific state 1");

        Flyweight flyweight2 = factory.getFlyweight("Y");
        flyweight2.operation("Specific state 2");
    }
}
